﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace embDocumentInhalator.embDocInhalatorWebPartSandboxed
{
    public static class StringExtensions
    {
        public static Boolean IsNumeric(this String s)
        {
            string regEx = "[0-9]*";

            if (Regex.IsMatch(s, regEx))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}
